import {actionType} from '../../interface'

const commonState = {
    tabType: '0'
}

const commonReducer = (state:any = commonState, action:actionType) => {

    const { type, data } = action

    if (type === 'CHGANGE_TAB_TYPE') {
        return {
            ...state,
            tabType: data
        }
    }
    return state
}

export default commonReducer